﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Circle : Shape { 
    
        private double r;

        public Circle(double r)
        {
            this.R = r;
        }
        public double R { get => r; set => r = value; }

        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("圆面积为：" + (r * r * 3.14));
        }
    }
}
